package ejT5;

import java.util.Scanner;

public class Ej01 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		System.out.print("Introduce n: ");
		int n = sc.nextInt();
		
		int anterior1 = 0;
		int anterior2 = 1;

		for (int i = 0; i < n; i++) {
			int pintar = anterior1 + anterior2;
			anterior2 = anterior1;
			anterior1 = pintar;
			System.out.print(pintar+((i == n-1)?"":", "));
		}
		System.out.println();

	}

}
